﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using TDDStudy.Library.WhatIsStub;
using TDDStudy.Library.WhatIsStub.Fakes;

namespace TDDStudy.WhatIsStub
{
    [TestClass]
    public class WhatIsStubTest
    {
        [TestMethod]
        public void Stub_Test()
        {
            var domainService = new DomainService(CreateStubDependencyService());
            domainService.Task();
        }

        private IDependencyService CreateStubDependencyService()
        {
            return new StubIDependencyService
                    {
                        OtherTask = () => { }
                    };
        }
    }
}
